package com.pan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pan.dao.AopLogDao;
import com.pan.domain.AopLog;
import com.pan.service.IAopLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class AopLogServiceImpl extends ServiceImpl<AopLogDao, AopLog> implements IAopLogService {
    @Autowired
    private AopLogDao aopLogDao;

    @Override
    public Boolean saveLogMsg(String title, int businessType, int status, String optParam, String errorMsg, Date operTime, String username, String uri, String ip) {
        return aopLogDao.saveLogMsg(title, businessType, status, optParam, errorMsg, operTime, username, uri, ip);
    }

    @Override
    public List<AopLog> seeAllAop() {
        return aopLogDao.seeAllAop();
    }
}
